//
//  SXWYNewsMainModel.m
//  ShiXun
//
//  Created by lanou on 15/10/26.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXWYNewsMainModel.h"

@implementation SXWYNewsMainModel
- (instancetype)init
{
    self = [super init];
    if (self) {
        _imageArray = [NSMutableArray arrayWithCapacity:0];
    }
    return self;
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"imgextra"]) {
        for (NSDictionary *imageDic in value) {
            _imageModel = [[SXWYNewsImageModel alloc] init];
            [_imageModel setValuesForKeysWithDictionary:imageDic];
            [_imageArray addObject:_imageModel];
        }
    }
    else{
        [super setValue:value forKey:key];
    }
}
@end
